﻿using System.Windows;

namespace GameLogic.Logic
{
    public class CollisionInformation
    {
        public Rect CollisionRect
        {
            get;
            private set;
        }

        // Element that is colliding with HitElement
        public FrameworkElement CollidingElement
        {
            get;
            private set;
        }

        // Element that is hit by CollidingElement
        public FrameworkElement HitElement
        {
            get;
            private set;
        }

        public Vector2D Normal
        {
            get;
            private set;
        }

        public CollisionInformation(FrameworkElement collidingElement, FrameworkElement hitElement, Rect collisionRect, Vector2D normal)
        {
            this.CollidingElement = collidingElement;
            this.HitElement = hitElement;
            this.CollisionRect = collisionRect;
            this.Normal = normal;
        }
    }
}